/*
 * @Description: 添加表单字段的DTO
 */
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';
import { CreateFormFieldDto } from './create-form-template.dto';

export class AddFormFieldDto {
  @ApiProperty({ description: '表单模板ID' })
  @IsNotEmpty({ message: '表单模板ID不能为空' })
  @IsString({ message: '表单模板ID必须为字符串' })
  formTemplateId: string;

  @ApiProperty({ description: '新增的字段信息' })
  @IsNotEmpty({ message: '字段信息不能为空' })
  field: CreateFormFieldDto;
}